home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 63 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: alterdial.uu.net!not-for-mail
  2. From: rex@aussie.com
  3. Newsgroups: comp.std.c
  4. Subject: Re: int's and zero
  5. Date: 9 Jan 1996 18:09:46 GMT
  6. Message-ID: <4cub1a$jbl@alterdial.UU.NET>
  7. References: <4cth4e$4q@odin.funcom.no>
  8. NNTP-Posting-Host: pool041.max1.ffx1.va.dynip.alter.net
  9. X-Newsreader: SPRY News 3.03 (SPRY, Inc.)
  10.  
  11. >   eivind@odin.funcom.com (Eivind Eklund) writes:
  12. >  Are zero in an integer required to be represented by binary zeros?
  13.  
  14.  
  15. There was considerable debate about whether or not integers could be stored 
  16. as BCD, Grey code, or some such, but in the end, we decided that they had to 
  17. be stored as binary numbers. And, of course, 2's comp, 1's comp, and signed 
  18. magnitude all use all-bits-zero for zero. The only thing that could cause a 
  19. problem is for machines/compilers with signed zeros; I think that negative 
  20. zero might have some other bit pattern.
  21.  
  22. Rex
  23.  
  24. ----------------------------------------------------------------------------
  25.     +1 703 860-0091 |       Rex Jaeschke          | C and C++ Seminars
  26. FAX +1 703 860-3008 |    2051 Swans Neck Way      | and Consulting
  27.      rex@aussie.com | Reston, Virginia 22091, USA | 
  28. ----------------------------------------------------------------------------
  29. Chair of X3J11 (ANSI C) and participant in SC22/WG14 (ISO C). Columnist for 
  30. NT Developer, VC++ Professional, and Enterprise NT.
  31. ----------------------------------------------------------------------------
  32.  
  33.